export const getRowBtnList = (type: string) => {
  const allBtn = {
    rollback: {
      name: '编辑',
      type: '3',
      typeChange: '101',
      func: rollbackdel,
    },
    details: {
      name: '详情',
      type: '3',
      typeChange: '102',
      func: particulars,
    },
  };

  const btnlist = <any>{
    '1': [allBtn.rollback, allBtn.details],
  };
  return btnlist[`${type}`];
};

// 编辑
const rollbackdel = (param: any) => {
  console.log('编辑', param);
  return Promise.resolve();
};

// 详情
const particulars = (param: any) => {
  console.log('详情', param);
  return Promise.resolve();
};

export default null;
